﻿using NExt.Core.Model.Base;

namespace NExt.tree
{
    public class AsyncTreeNode : AsyncTreeNode<AsyncTreeNodeEvents>
    {
    }

    public abstract class AsyncTreeNode<TEvents> : TreeNode<TEvents>
        where TEvents : AsyncTreeNodeEvents, new()
    {
        public TreeLoader loader { get; set; }
    }

    public class AsyncTreeNodeEvents : TreeNodeEvents
    {
        public IScript beforeload { get; set; }
        public IScript load { get; set; }
    }
}
